package com.example.question;

import java.util.Calendar;

public class QandaType {
    private String question;
    private String answerRight;
    private String answerUser;
    private Calendar createTime;
    private Calendar answerTime;

    public QandaType(String question, String answerRight, Calendar createTime) {
        this.question = question;
        this.answerRight = answerRight;
        this.createTime = createTime;
        this.answerTime = null;
        this.answerUser = "";

    }

    public String getAnswerRight() {
        return answerRight;
    }

    public void setAnswerRight(String answerRight) {
        this.answerRight = answerRight;
    }

    public Calendar getAnswerTime() {
        return answerTime;
    }

    public void setAnswerTime(Calendar answerTime) {
        this.answerTime = answerTime;
    }

    public Calendar getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Calendar createTime) {
        this.createTime = createTime;
    }

    public String getAnswerUser() {
        return answerUser;
    }

    public void setAnswerUser(String answerUser) {
        this.answerUser = answerUser;
    }


    public String getQuestion() {
        return question;
    }

    public void setQuestion(String question) {
        this.question = question;
    }
}
